package com.love.cloud.admin.mapper;

import com.love.cloud.admin.api.entity.DingTalkAsync;
import com.love.cloud.common.mybatis.mapper.MyBaseMapper;
import org.apache.ibatis.annotations.Mapper;

/**
 * @author hongdongqu
 */
@Mapper
public interface DingTalkAsyncMapper extends MyBaseMapper<DingTalkAsync> {
    /**
     * 复制表
     * @param newTable
     * @param oldTable
     * @return
     */
    boolean copyTable(String newTable, String oldTable);
    /**
     * 清空表（不被事物管理的）
     */
    boolean truncateTable(String tableName);
    /**
     * 删除表
     */
    boolean dropTable(String tableName);
    /**
     * 清空表（可被事物控制到）
     */
    boolean deleteTableData(String tableName);
}
